package com.wzq.service.impl;

import com.wzq.dao.dto.NowDiscussDto;
import com.wzq.dao.pojo.Discuss;
import com.wzq.mapper.Discussmapper;
import com.wzq.service.IDiscussService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yzc
 * @since 2022-08-31
 */
@Service
public class DiscussServiceImpl extends ServiceImpl<Discussmapper, Discuss> implements IDiscussService {
    @Autowired
    Discussmapper discussmapper;

    @Override
    public List<NowDiscussDto> getByActId(Integer actid) {
        return discussmapper.getByActId(actid);
    }
}
